<@realgodo.cloumn>
<div class="content bgff">
	<@realgodo.friend_nav/>
	<div class="zs_r l bgff" style=" width:auto">
		<div class="py_list vd_center">
			<hr/>
			<#if (friendPage?exists) && (friendPage.result?has_content)>
			<table cellpadding="0" cellspacing="5" border="0" width="100%">
				<#list friendPage.result as friend>
				<tr>
					<td width="80px" align="left"><img src="${base}/images/bg.jpg" />
						<span class="font13 vd_font vd_weight mainColor">
							<span class="fontar">VIP</span>
						</span>
					</td>
					<td width="53px">
						<img width="53px" height="56px" src="${(friend.sender.user.head.fullPath)!'${base}/images/pp.jpg'}" />
					</td>
					<td  valign="bottom">
						<div class="bga l">
							<a href="${base}/user/?sid=${friend.sender.id?c}" hidefocus class="mainColor font13">${(friend.sender.name)!}</a>
							<span class="font13 vd_weight  vd_color9">V${(friend.sender.level)!}</span>
						</div>
					</td>
					<td align="right">
						<input type="button" value="同意" class="font12 vd_color9 bgff" style="padding:2px;margin-bottom:5px" onclick="confirmAudit('${friend.id?c}',true)"/>&nbsp;&nbsp;
					</td>
					<td align="left">
						<input type="button" value="拒绝" class="font12 vd_color9 bgff" style="padding:2px;margin-bottom:5px" onclick="confirmAudit('${friend.id?c}',false)"/>&nbsp;&nbsp;
					</td>
				</tr>
				</#list>
			</table>
			<hr />
			<#--
			<table cellpadding="0" cellspacing="5" border="0" width="100%"><tr><td width="80px" align="left"><img src="${base}/images//bg.jpg" /> <span class="font13 vd_font vd_weight mainColor"><span class="fontar">VIP</span></span></td><td width="53px"><img src="${base}/images//pp.jpg" /></td><td  valign="bottom" ><div class="bga l"><a href="#" hidefocus class="mainColor font13">马跃..</a> <span class="font13 vd_weight  vd_color9">V2</span></div><div class="r"><span class="bga"><a href=" #" hidefocus class="font12 vd_color9" style="vertical-align:bottom">添加描述</a></span></div></td><td width="100px"><input type="checkbox"  class="bgff"/>&nbsp;&nbsp;<input type="checkbox"  class="bgff"/></td><td align="center"><input type="button" value="转为新朋友" class="font12 vd_color9 bgff" style="padding:2px; margin-bottom:5px"/>&nbsp;&nbsp;<input type="button" value="删除朋友" class="font12 vd_color9 bgff" style="padding:2px;margin-bottom:5px"/>&nbsp;&nbsp;<span  class="font12 vd_color9">转移组</span><select  class="font12 vd_color9 bgff"><option>老朋友  </option><option>新朋友</option></select></td></tr></table>
			<hr />
			<div class="py_head vd_center" style="margin-top:20px">
				<input type="submit" value="保 存" class="bgff mainColor vd_weight" style="padding:5px 50px" />
			</div>-->
			<#else>
				该分组没有朋友
			</#if>
		</div>
	</div>
</div>
<script>
	
	function confirmAudit(cId,flag){
		if(cId==null||cId==""){
			return;
		}
		if(flag){
			if(window.confirm('确认同意该朋友申请吗')){
				window.location.href="${base}/user/friend/index!audit?auditType=1&id="+cId;
			}
		}else{
			if(window.confirm('确认拒绝该朋友申请吗？该操作将删除本条记录')){
				window.location.href="${base}/user/friend/index!audit?auditType=-1&id="+cId;
			}
		}
		
	}
</script>
</@realgodo.cloumn>